package com.atguigu.cloud.entities;


import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "t_freeze_storage")
@Data
public class StorageFreeze {

    @Id
    @Column(name = "x_id")
    private String xid;

    /**
     * 产品id
     */
    @Column(name = "product_id")
    private Long productId;

    /**
     * 总库存
     */
    @Column(name = "freeze_num")
    private Integer freezeNum;


    private Integer state;

    public static final class state {
        public static final int TRY = 0;
        public static final int CONFIRM = 1;
        public static final int CANCEL = 2;


    }
}
